import request from '@/utils/request'
import type { LoginParams, LoginResponse } from '@/type/login'

export const loginAPI = (data: LoginParams): Promise<LoginResponse> => {
  return request.post('/apif/adminLogin', data)
}
